package dd.server;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.FlowLayout;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.factories.FormFactory;
import com.jgoodies.forms.layout.RowSpec;

import dd.model.Event;
import dd.model.serverModel;
import net.miginfocom.swing.MigLayout;
import java.awt.GridLayout;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.SpringLayout;

import server.Server;

import xml.Message;

import java.awt.CardLayout;
import server.ClientState;

public class TestServerTurnResponse extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */

	/**
	 * Create the frame.
	 */
	public TestServerTurnResponse(ClientState client, Message request) {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		serverModel sm = serverModel.getInstance();
		Event e = sm.getEvent();
		
		JButton btnTurnToMod = new JButton("Turn to mod");
		btnTurnToMod.addActionListener(new turntomodeButtonConrtroller(client,request));
		btnTurnToMod.setBounds(6, 32, 143, 29);
		contentPane.add(btnTurnToMod);
		
		JButton btnTurnTond = new JButton("turn to 2nd user");
		btnTurnTond.setBounds(6, 154, 143, 29);
		contentPane.add(btnTurnTond);
		
		JButton btnTurnTord = new JButton("turn to 3rd user");
		btnTurnTord.setBounds(6, 215, 143, 29);
		contentPane.add(btnTurnTord);
		
		JButton btnTurnTost = new JButton("turn to 1st user");
		btnTurnTost.setBounds(6, 93, 143, 29);
		contentPane.add(btnTurnTost);
		
		JButton btnComplete = new JButton("complete");
		btnComplete.setBounds(242, 32, 117, 212);
		contentPane.add(btnComplete);
	}
}
